package com.gitee.pifeng.monitoring.server.business.server.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.sql.Time;
import java.util.Date;

/**
 * @Author wt
 * @Date: 2023/11/27 11:11
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_link_stat")
public class TLinkStat {
    /**
     * 链路名称
     */
    @TableField("link_name")
    private String linkName;

    /**
     * 子链路名称
     */
    @TableField("sub_link_name")
    private String subLinkName;

    /**
     * 进程名称
     */
    @TableField("process_name")
    private String processName;

    /**
     * 节点
     */
    @TableField("running_on")
    private String runningOn;

    /**
     * 检查时间
     */
    @TableField("check_time")
    private Date checkTime;

    /**
     * 过程统计
     */
    @TableField("process_stat")
    private Long processStat;

    @TableField("lag_time")
    private Time lagTime;

    @TableField("lag_msgs")
    private Integer lagMsgs;

    @TableField("lag_size")
    private Integer lagSize;

    @TableField("stat_touch_cnt")
    private Integer statTouchCnt;

    /**
     * 消息
     */
    @TableField("message")
    private String message;

    /**
     * 服务器名称
     */
    @TableField("sub_link_alias")
    private String subLinkAlias;

    /**
     * 链路命名
     */
    @TableField(exist = false)
    private String showName;

    @TableField("dealed")
    private Integer dealed;

    /**
     * 链路别名
     */
    @TableField(exist = false)
    private String alias;
}
